package hackthon.core;

import java.util.concurrent.BlockingDeque;

/**
 * Created by wuwenhao on 15/1/8.
 */
public class MailSenderQueue {

    public BlockingDeque blockingDeque;

    public void addToQueue(int emailId){
        blockingDeque.offer(emailId);
    }

    public Object pollEmail(){
        return blockingDeque.poll();
    }
}
